package post

import (
	"center-platform/internal/event"
	"fmt"
)

type postEvent struct {
	postLiked *postLiked
}

type postLiked struct {
}

func (p *postLiked) HandleFunc(data interface{}) {
	fmt.Println("你的作品" + data.(string) + "被点赞了")
}

func GetEventListener() map[string][]event.Listener {
	postEvent := &postEvent{postLiked: &postLiked{}}
	return map[string][]event.Listener{
		"post_liked": {postEvent.postLiked},
	}
}
